﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="test.aspx.cs" Inherits="ExaminationSys.View.Section.test" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
 
<%@ Register src="Editor.ascx" tagname="Editor" tagprefix="uc1" %>
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
     <script src="../../UEditor/editor_config.js" type="text/javascript"></script>
<script src="../../UEditor/editor_all_min.js" type="text/javascript"></script>
<link href="../../UEditor/themes/default/ueditor.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <ext:ResourceManager ID="ResourceManager1" runat="server"  DirectMethodNamespace="X" />
   
        <ext:panel id="Panel1" runat="server" title="" frame="true" layout="Fit" buttonalign="Center"
            autoheight="true">
            <Buttons>
                <ext:Button ID="Button1" runat="server" Icon="DiskEdit" Text="保 存" >
                   
                </ext:Button>
                <ext:Button ID="Button2" runat="server" Icon="Cancel" Text="关 闭">
                    <Listeners>
                        <Click Handler="parent.window.tmpWin.close();" />
                    </Listeners>
                </ext:Button>
            </Buttons>
            <Items>
                <ext:TabPanel ID="TabPanel1" runat="server" ActiveTabIndex="0" Frame="true" DeferredRender="false"
                    AutoHeight="true">
                    <Items>
                        <ext:Panel ID="Panel2" runat="server" Title="获取编辑器信息" Frame="true" AutoHeight="true"
                            Padding="6" ItemCls="blueborder" Layout="Form">
                            <Items>                         
                              
                                <ext:TextArea runat="server" id="tbEditor" />
                               
                            
                            </Items>
                        </ext:Panel>
                      
                      
                      
                    </Items>
                </ext:TabPanel>
            </Items>
        </ext:panel>
       
   
     <script type="text/javascript">
         var editor;

         Ext.onReady(function () {
             editor = new baidu.editor.ui.Editor({
                 iframeCssUrl: '../../UEditor/themes/default/iframe.css',
                 textarea: 'myEditor'
             });
             editor.render("tbEditor");
         })
         var getEditText = function () {
             return editor.getContent();

         }

         // 自定义的编辑器配置项,此处定义的配置项将覆盖editor_config.js中的同名配置
         //         var editorOption = {
         //             //这里可以选择自己需要的工具按钮名称,此处仅选择如下五个
         //             toolbars: [['FullScreen', 'Source', 'Undo', 'Redo', 'Bold']],
         //             //focus时自动清空初始化时的内容
         //             autoClearinitialContent: true,
         //             //关闭字数统计
         //             wordCount: false,
         //             //关闭elementPath
         //             elementPathEnabled: false
         //             //更多其他参数，请参考editor_config.js中的配置项
         //         };
         //         var editor_a = new baidu.editor.ui.Editor(editorOption);
         //         editor_a.render('tbEditor');

    </script>

  
    </form>
</body>
</html>
